package com.ctrip.ibu.member.broker.module;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author he.shaorong
 * @create 2023/3/20 18:57
 * @since 1.0.0
 */
@ApiModel("生产消息内容")
public class TopicMessage {
    @ApiModelProperty("消息主题")
    private String topic;

    @ApiModelProperty("消息列表，支持一次生产多个消息")
    private List<MessageInfo> messageList;

    public TopicMessage(String topic, List<MessageInfo> messageList) {
        this.topic = topic;
        this.messageList = messageList;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public List<MessageInfo> getMessageList() {
        return messageList;
    }

    public void setMessageList(List<MessageInfo> messageList) {
        this.messageList = messageList;
    }
}
